def SplitFile(fname, num_shards):
  """Give a file, splits it into to_num_shards shards. Files of
  shards are fname_0, fname_1, ..., fname_'num_shards-1'.
  """
  f = open(fname)
  line_cnt = 0
  for line in f:
    if line.strip():  # Ignore blank lines
      line_cnt += 1
  shard_size = line_cnt / num_shards
  
  f.seek(0)

  # TODO: Write to each shard
